// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   MsgConfigBO.java

package com.vandagroup.common.msgexchange;

import com.vandagroup.common.bo.ESSBO;
import com.vandagroup.common.util.Result;
import java.sql.SQLException;

// Referenced classes of package com.vandagroup.common.msgexchange:
//            MsgConfigPO, MsgConfigFormBean

public class MsgConfigBO extends ESSBO
{

    public MsgConfigBO()
    {
    }

    public int add(MsgConfigFormBean bean)
        throws SQLException
    {
        MsgConfigPO po = new MsgConfigPO();
        po.setMsgconfigForm(bean);
        int rows = po.add();
        return rows;
    }

    public int remove()
        throws SQLException
    {
        MsgConfigPO po = new MsgConfigPO();
        po.setWhereClause("");
        int rows = po.delete();
        return rows;
    }

    public Result retrieve(int pageNO)
        throws SQLException
    {
        MsgConfigPO po = new MsgConfigPO();
        po.setWhereClause("");
        po.setResultPage(20, pageNO);
        Result result = po.retrieveResult();
        return result;
    }

    public int update(MsgConfigFormBean bean)
        throws SQLException
    {
        MsgConfigPO po = new MsgConfigPO();
        po.setWhereClause("");
        po.setMsgconfigForm(bean);
        int rows = po.update();
        return rows;
    }
}
